dom.insertHTML()

Availability 3.0
Description Inserts HTML content into the document at the current insertion point.
Arguments contentToInsert, {bReplaceCurrentSelection}
The first argument is the content you want to insert.
The second argument is a Boolean value indicating whether the content should replace the current selection. If bReplaceCurrentSelection is False, the content is inserted after the current selection.
Returns Nothing.
Enabler None.
Example The following code inserts <b>130</b> into the current document:
var theDOM = dw.getDocumentDOM();
theDOM.insertHTML('<b>130</b>');
This appears in the Document window as: